<div class="row">
  <div class="span3 bs-docs-sidebar ">
 	<*include file="<*$controller*>/location.tpl"*>
  </div>
  <div class="span8">
  <h3><*$result.name*></h3> 
<form action="/<*$controller*>/vippicturesave" method="post" id="form1" enctype="multipart/form-data" >    
        <table class="table table-bordered " style="margin-top:15px; margin-left:20px;">
        	<tr>
                <th>图片</th>
                <td>
                <*if $result.cloudpath*>
                    <*foreach from=$result.cloudpath item=m key=y*>
                    <img class="span1" src="http://cloud.yunxiaoche.com/images/<*$m*>.jpg"/>
                    <*/foreach*>
					<input type="hidden" name="picnum" value="<*count($result.cloudpath)*>" id=""/>
                <*else*>
                没有图片                    
                <*/if*>
                </td>
            </tr>
            
            <tr>
                <th>删除图片</th>
                <td>
                <*if $result.cloudpath*>
                    <*foreach from=$result.cloudpath item=m key=y*>
                    <div class="span1"><input type="checkbox" name="picture[]" value="<*$m*>"></div>
                    <input type="hidden" name="cloudpath[]" value="<*$m*>" id=""/>
                    <*/foreach*>
                <*else*>
                没有图片                    
                <*/if*>
                </td>
            </tr>
            
            <tr>
                <th>增加图片</th>
                <td>
                    <input type="file" name="pic_url" id="pic_url" style="width:200px;"/>
                </td>
            </tr>
            
        	<tr><td colspan="2" style="text-align:center;">
                <button type="submit" class="btn btn-primary" >保存</button>
                <button type="button" class="btn" onclick="window.location='/<*$controller*>/vip'">返回</button>
				<input type="hidden" name="itemid" value="<*$result.itemid*>" id=""/>
				<input type="hidden" name="enname" value="<*$result.enname*>" id=""/>
        </table>
</form>
  </div>
</div>
